import VueRouter from 'vue-router'
//导入对应路由组件
import Home from './components/tabbar/Home.vue'
import Member from './components/tabbar/Member.vue'
import Search from './components/tabbar/Search.vue'
import ShopCar from './components/tabbar/ShopCar.vue'
import NewsList from './components/news/newslist.vue'
import NewsInfo from './components/news/newsinfo.vue'
import PhotoList from './components/photo/photolist.vue'
import photoInfo from './components/photo/photoinfo.vue'
import shopBuy from './components/goodslist/shopping.vue'
import shopInfo from './components/goodslist/goodsinfo.vue'
import GoodsDetail from './components/goodslist/Goodsdetail.vue'
var router = new VueRouter({
	routes:[
		{path:'/',redirect:Home},
		{path:'/home',component:Home},
		{path:'/member',component:Member},
		{path:'/search',component:Search},	
		{path:'/shopcar',component:ShopCar},
		{path:'/home/newslist',component:NewsList},
		{path:'/home/newsinfo:id',component:NewsInfo},
		{path:'/home/photolist',component:PhotoList},
		{path:'/home/photoInfo/:id',component:photoInfo},
		{path:'/home/shopping',component:shopBuy},
		{path:'/home/goodsinfo/:id',component:shopInfo},
		{path:'/home/goodsdetial/:id',component:GoodsDetail,name:'GoodsDet'}
	],
	linkActiveClass:'mui-active'//覆盖默认路由高亮类
})

export default router